/* eslint-disable import/no-extraneous-dependencies */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [vue()],
    resolve: {
        // 配置路径别名，需要同步修改tsconfig.json与eslintrc.js
        alias: {
            '@': path.resolve(__dirname, 'src'),
        },
        extensions: ['.js', '.json', '.ts'],
    },
})
